# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=mmtc
pkgver=0.3.2
pkgrel=0
pkgdesc="Minimal mpd terminal client that aims to be simple yet highly configurable"
url="https://github.com/figsoda/mmtc"
# loongarch64: blocked by libc crate
arch="all !loongarch64"
license="MPL-2.0"
makedepends="
	cargo
	cargo-auditable
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/figsoda/mmtc/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # no tests

prepare() {
	default_prepare
	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --release --frozen
}

package() {
	install -Dm 755 target/release/mmtc "$pkgdir"/usr/bin/mmtc
}

sha512sums="
0a5c7f362b74004788dc2764fcd93508c521baa6543bb5583b200fe03c03b820f3817dd437deee7df4e3ff0dc2f93ba18861f535db4b59da8cc855ab6ee503b2  mmtc-0.3.2.tar.gz
"
